const express = require('express');
const app = express();

app.get('/', (req, res) => {
  res.send('测试服务器正常工作');
});

app.get('/api/test', (req, res) => {
  res.json({ message: '测试API正常工作' });
});

const PORT = 3001;
app.listen(PORT, () => {
  console.log(`测试服务器运行在 http://localhost:${PORT}`);
});